package com.ruoyi.answer.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷和试题关联组成业务对象 exam_composition
 *
 * @author kun_er
 * @date 2022-08-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ExamCompositionBo extends BaseEntity {

    /**
     * 自动编号
     */
    @NotNull(message = "自动编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 试卷编号
     */
    @NotNull(message = "试卷编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long paperId;

    /**
     * 题目编号
     */
    private Long questionId;

    /**
     * 试题编号
     */
    @NotNull(message = "试题编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionOrder;

    /**
     * 题目分值
     */
    @NotNull(message = "题目分值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long score;
    /**
     * 题目类型
     */

    private Long questionType;

    /**
     * 题干
     */
    @NotNull(message = "题干不能为空", groups = { AddGroup.class, EditGroup.class })
    private String questionTitle;

    /**
     * 题目答案
     */
    @NotBlank(message = "题目答案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answer;

    /**
     * 题目解析
     */

    private String analysis;


}
